/**
 * Issue link domain class
 */
class IssueLink {
    Issue from, to

    static belongsTo = [from: Issue]

    static constraints = {
        from(blank: false)
        to(blank: false, unique: 'from')
    }

    public String toString() {
        return "$from - $to"
    }
}
